package academic.concordia.bankofquebec.entity;

public class VirtualWallet extends BankAccount{
	
	private static final long serialVersionUID = 1L;
	
	public VirtualWallet(){
		super();
		this.attributes = AccountAttributes.VIRTUAL_WALLET;
		this.type = this.attributes.name();
	}
	
	public Transaction deposit(double amount){
		//TODO hard code to simulate problem
		Transaction transaction = new Transaction();
		if (!this.getAccountNumber().equals("01234")){
			transaction.setStatus(TransactionStatus.REJECTED);
			transaction.setMessage("Invalid eWallet Account");
		}
		return transaction;
	}

}
